import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)
// 移动端
//  /lanhu_guiowepresalepoolsxiangqing
//  /lanhu_yidongduanqiehuan
//  /lanhu_yidongduanpczhanshi
//  /lanhu_yidongduanqianbaozhongzhanshi
const routes = [
    {
    path: '/',
    redirect: "/home/index"
  },
 
  {
    path: '/home',
    name: 'home',
    component:()=> import("./../views/home/home.vue"),
    children:[{
        path: '/home/index',
        name: 'Index',
        component:()=> import("./../views/index/index.vue"),
        meta:{
            title:"首页",
        }
    },
    {
        path: '/home/exhibit',
        name: 'Exhibit',
        component:()=> import("./../views/exhibit/exhibit.vue"),
        meta:{
            title:"展示",
        }
    },
    {
        path: '/home/exhibitDetail',
        name: 'ExhibitDetail',
        component:()=> import("./../views/exhibitDetail/exhibitDetail.vue"),
        meta:{
            title:"展示详情",
        }
    },
    {
        path: '/home/product',
        name: 'Product',
        component:()=> import("./../views/product/product.vue"),
        meta:{
            title:"产品详情",
        }
    },
        {
            path: '/home/searchProduct',
            name: 'Product',
            component:()=> import("./../views/product/search_product.vue"),
            meta:{
                title:"产品详情",
            }
        },
    {
        path: '/home/buyProduct',
        name: 'BuyProduct',
        component:()=> import("./../views/buyProduct/buyProduct.vue"),
        meta:{
            title:"购买",
        }
    },
    {
        path: '/home/aboutUs',
        name: 'AboutUs',
        component:()=> import("./../views/aboutUs/aboutUs.vue"),
        meta:{
            title:"关于我们",
        }
    },
    {
        path: '/home/aboutDetail',
        name: 'AboutDetail',
        component:()=> import("./../views/aboutDetail/aboutDetail.vue"),
        meta:{
            title:"关于我们详情",
        }
    },
    {
      path: '/home/shoppingCart',
      name: 'ShoppingCart',
      component:()=> import("./../views/shoppingCart/shoppingCart.vue"),
      meta:{
          title:"购物车",
      }
  },
  ]
  },
  {
      path: '/reserve',
      name: 'Reserve',
      component:()=> import("./../views/reserve/reserve.vue"),
      meta:{
          title:"预约",
      }
  },
  {
      path: '/service',
      name: 'Service',
      component:()=> import("./../views/service/service.vue"),
      meta:{
          title:"我们的服务",
      }
  },
  {
      path: '/login',
      name: 'Login',
      component:()=> import("./../views/login/login2.vue"),
      meta:{
          title:"登陆",
      }
  },
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
